<?php 
include '../data/data.php';
$user=$_SESSION['user']; //获取到的用户名
$pass=$_SESSION['pass']; //获取到的密码
$result= mysql_query("SELECT * FROM user WHERE username='$user' and password='$pass'", $link);  
$row = mysql_fetch_array($result);
if($row[id]==''){
	header('location:/user/login.html?fwd=/user/edit.html');
}
?>
<html><head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>个人资料 - <?php echo $rowx[name]; ?></title>
<link rel="stylesheet" href="/public/styles/base.css">
<link rel="stylesheet" href="/styles/user_info.css">
    <link rel="stylesheet" href="/css/new.css">
    <style>
        .login_btn{
            width: 100%;
            height: 75px;
            text-align: center;
            background: #f4f4f4;
            color: white;
            padding-top: 75px;
        }
    </style>
</head>
<body class="bg00">
<!--div.container 总外框  start-->
<div class="z_container bg01">
    <header class="z_header block_bg">
        <div class="toptil">
            <a href="/user/index.html"><img src="/picture/icon_20.png" alt=""></a>
            <p>个人资料</p>
        </div>
    </header>

    <!--div.z_min 内容区域 statr-->
    <div class="z_main">
        <ul class="user_lists">
            <li>
                <p style="font-size:16px;font-weight:bold;color:rgba(51,51,51,1);">
                    资料信息
                </p>
            </li>
            <div style="width: 100%;height: 1px;background: #f4f4f4;"></div>
            <li>
                <strong>用户UID</strong>
                <input class="" type="text"  maxlength="16" value="<?php echo $row[id]; ?>" disabled>
            </li>
            <div style="width: 100%;height: 1px;background: #f4f4f4;"></div>
            <li>
                <strong>用户账号</strong>
                <input class="" type="text"  maxlength="16" value="<?php echo $row[username]; ?>" disabled>
            </li>
            <div style="width: 100%;height: 1px;background: #f4f4f4;"></div>
            <li>
                <strong>所属渠道</strong>
                <input onchange="Ne();" type="text"  maxlength="32" value="<?php echo $row[userid]; ?>" disabled>
            </li>
        </ul>
        <div style="width: 100%;height: 7px;background: #f4f4f4;"></div>
        <ul class="user_lists">
            <li>
                <p style="font-size:16px;font-weight:bold;color:rgba(51,51,51,1);">
                    安全信息
                </p>
            </li>
            <div style="width: 100%;height: 1px;background: #f4f4f4;"></div>
            <li class="links">
                <a href="/user/password.html" target="_top">
                    <strong>修改密码：</strong>
                    <i class="i_more"></i>
                </a>
            </li>
        </ul>
<!--        <div class="login_btn" id="save">-->
<!--            <div style="width: 80%;height: 37px;line-height: 37px;background: #5398FD;margin-left: 10%;">-->
<!--                保存资料-->
<!--            </div>-->
<!--        </div>-->
                    <div style="width: 100%;height: 114px;background: #f4f4f4;margin-top: 0px;">
                <div style="width: 80%;margin-left: 10%;height: 36px;padding-top: 45px;">
                    <p style="line-height: 36px;text-align: center;background: #ffffff;">
                        <a style="font-size: 16px;color: #333333" href="/user/user.html?index=tui">退出登录</a>
                    </p>
                </div>
            </div>
                <div class="footer_padding"></div>
    </div>
    <!--div.z_min 内容区域 end-->
</div>
<!--div.container 总外框  end-->
<!--footer 底部 start-->
<footer id="footer" class="z_footer" style="">
    <nav>
        <a target="_top" href="/index.html" style="margin-left: 2%;" >
            <p class="img_1"><img src="/picture/home.png" alt=""></p>
            <p class="img_2"><img src="/picture/home1.png" alt=""></p>
            <span>首页</span>
        </a>
        <a target="_top" href="/game/type.html?tc=GM" >
            <p class="img_1"><img src="/picture/game.png" alt=""></p>
            <p class="img_2"><img src="/picture/game1.png" alt=""></p>
            <span>GM</span>
        </a>
        <a target="_top" href="/game/game.html?tc=rm" title="">
            <p class="img_1"><img src="/picture/game.png" alt=""></p>
            <p class="img_2"><img src="/picture/game1.png" alt=""></p>
            <span>BT</span>
        </a>
        <a target="_top" href="/user/user.html" title="" id="footer_nav_active">
            <p class="img_1"><img src="/picture/user.png" alt=""></p>
            <p class="img_2"><img src="/picture/user1.png" alt=""></p>
            <span>我的</span>
        </a>
    </nav>
</footer>
<link href="/css/app.css" rel="stylesheet" type="text/css">
<div id="weixin_an" style="display: none">
    <div class="click_opacity"></div>
    <div class="to_btn">
        <span class="span1"><img src="/public/channel/click_btn.png"></span>
        <span class="span2"><em>1</em> 点击右上角<img src="/public/channel/menu_android.png">打开菜单</span>
        <span class="span2 android_open"><em>2</em> 选择<img src="/public/channel/android.png"></span>
        <span class="span2 android_open"><em>3</em> 重新登录账号充值</span>
    </div>
</div>

<!--二维码-->
<script src="/public/scripts/jquery-1.11.1.min.js"></script>
<script src="/public/scripts/jquery.qrcode.min.js"></script>

<!--<div class="qrcode_image">-->
<!--        <img src="/qrcode/game.html?addr=--><!--">-->
<!--</div>-->


<script src="/public/scripts/jquery-1.11.1.min.js"></script>
<script src="/public/scripts/jquery.mobile.min.js"></script>

</body></html>